package privilege

import (
	_ "embed"
	"gitee.com/zaper/private-logger"
	"gitee.com/zaper/service-center-client/util"
)

//go:embed config/privilege.properties
var privilegeConfig string

func Privilege() bool {
	properties, err := util.ParseStringToProperties(privilegeConfig)
	if err != nil {
		logger.Error("Get privilege config is fail")
		return false
	}
	if properties.Data["privilege"] == "true" {
		return true
	}
	return false
}
